package top.tocchen.bookshop.service.admin.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.tocchen.bookshop.dao.admin.ManagerUserDao;
import top.tocchen.bookshop.entity.admin.ManagerUserEntity;
import top.tocchen.bookshop.service.admin.ManagerUserService;

/**
 * @author tocchen
 * @date 2022/8/11 21:27
 * @since jdk 1.8
 **/
@Service
public class ManagerUserServiceImpl implements ManagerUserService {

    @Autowired
    ManagerUserDao userDao;

    @Override
    public ManagerUserEntity queryAccountInfo(String account, String password) {
        return userDao.queryAccountInfo(account, password);
    }

    @Override
    public void insertUser(ManagerUserEntity entity) {
        userDao.insertUser(entity);
    }
}
